<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MODULE_IMAGE: Référence du fichier /home/radius/Documents/Rachid_Licence/LIF7/LIF7_TD1/module-image/src/Image.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li><a href="dirs.html"><span>Répertoires</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Liste&nbsp;des&nbsp;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&nbsp;de&nbsp;fichier</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="dir_53790bda95882cd03745840c1cece42e.html">src</a>
  </div>
</div>
<div class="contents">
<h1>Référence du fichier Image.h</h1>
<p>Fichier d'entête du module Image.  
<a href="#_details">Plus de détails...</a></p>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;assert.h&gt;</code><br/>
<code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="_pixel_8h_source.html">Pixel.h</a>&quot;</code><br/>

<p><a href="_image_8h_source.html">Aller au code source de ce fichier.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structs_image.html">sImage</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Structure utilisée pour la gestion d'une image.  <a href="structs_image.html#_details">Plus de détails...</a><br/></td></tr>
<tr><td colspan="2"><h2>Macros</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8h.html#a819a524059d9f07c479df8e660b5c47b">H_Image_H</a></td></tr>
<tr><td colspan="2"><h2>Définition de type</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structs_image.html">sImage</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8h.html#abbe0c74b95d97226a5e1f28a814631b8">Image</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Redéfinit la structure <a class="el" href="structs_image.html" title="Structure utilisée pour la gestion d&#39;une image.">sImage</a>.  <a href="#abbe0c74b95d97226a5e1f28a814631b8"></a><br/></td></tr>
<tr><td colspan="2"><h2>Fonctions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8h.html#a6edbdf3bfe3beb4e44246a6c7985055c">imInit</a> (<a class="el" href="structs_image.html">Image</a> *im, const int dimx, const int dimy)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialise une image.  <a href="#a6edbdf3bfe3beb4e44246a6c7985055c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8h.html#a5931290abc22d365ae351381c594613f">imLibere</a> (<a class="el" href="structs_image.html">Image</a> *im)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Libère une image de la mémoire.  <a href="#a5931290abc22d365ae351381c594613f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs_image.html">Image</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8h.html#acd1b5e5f7a7fa80087a1e53bfa4da49d">imCreer</a> (const int dimx, const int dimy)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Alloue dans le tas une structure Image puis l'initialise avec imInit.  <a href="#acd1b5e5f7a7fa80087a1e53bfa4da49d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8h.html#ae9d0336b23f7c615e57c4862714df90f">imDetruire</a> (<a class="el" href="structs_image.html">Image</a> *im)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Libere le tableau de pixel en appelant imLibere puis détruit la structure image.  <a href="#ae9d0336b23f7c615e57c4862714df90f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_pixel.html">Pixel</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8h.html#a1cb04a46ed83be9a0c49b3b884c91d62">getPix</a> (const <a class="el" href="structs_image.html">Image</a> *im, const int x, const int y)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Récupère le pixel de coordonnée (x,y) en vérifiant leur validité.  <a href="#a1cb04a46ed83be9a0c49b3b884c91d62"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8h.html#ad239628e88372f488e18848112517521">setPix</a> (<a class="el" href="structs_image.html">Image</a> *im, const int x, const int y, const <a class="el" href="struct_pixel.html">Pixel</a> *couleur)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Modifie le pixel de coordonnée (x,y).  <a href="#ad239628e88372f488e18848112517521"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8h.html#aae7e2d32a1d4c4516a818d8a473c0a86">imDessineRectangle</a> (<a class="el" href="structs_image.html">Image</a> *im, const int Xmin, const int Ymin, const int Xmax, const int Ymax, const <a class="el" href="struct_pixel.html">Pixel</a> *couleur)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Dessine un rectangle de couleur dans l'image en utilisant setPix.  <a href="#aae7e2d32a1d4c4516a818d8a473c0a86"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8h.html#aa04f50f4353fee39ec6cfd7201ab0367">imEffacer</a> (<a class="el" href="structs_image.html">Image</a> *im, const <a class="el" href="struct_pixel.html">Pixel</a> *couleur)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Efface l'image en appelant imDessineRectangle avec le bon rectangle.  <a href="#aa04f50f4353fee39ec6cfd7201ab0367"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8h.html#a20b9ad35b6db7bd09d7452574d04dd50">imSauver</a> (const <a class="el" href="structs_image.html">Image</a> *pIm, const char filename[])</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">sauvegarde une image au format .ppm.  <a href="#a20b9ad35b6db7bd09d7452574d04dd50"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8h.html#a0a1f0b9be4b910e1cfc2648cfa9e38fd">imOuvrir</a> (<a class="el" href="structs_image.html">Image</a> *pIm, const char filename[])</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ouvre une image au format .ppm.  <a href="#a0a1f0b9be4b910e1cfc2648cfa9e38fd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8h.html#afadf8ab43119d304c72e201d0d95164d">imPrintf</a> (const <a class="el" href="structs_image.html">Image</a> *pIm)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">sauvegarde une image au format .ppm.  <a href="#afadf8ab43119d304c72e201d0d95164d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="_image_8h.html#a4fdd00deba298ac07e0636bace7a0e61">ImRegressionTest</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Teste toutes les fonctions du module image.h.  <a href="#a4fdd00deba298ac07e0636bace7a0e61"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Description détaillée</h2>
<p>Fichier d'entête du module Image. </p>
<dl class="author"><dt><b>Auteur:</b></dt><dd>Rachid Delory </dd></dl>

<p>Définition dans le fichier <a class="el" href="_image_8h_source.html">Image.h</a>.</p>
<hr/><h2>Documentation des macros</h2>
<a class="anchor" id="a819a524059d9f07c479df8e660b5c47b"></a><!-- doxytag: member="Image.h::H_Image_H" ref="a819a524059d9f07c479df8e660b5c47b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define H_Image_H</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Définition à la ligne <a class="el" href="_image_8h_source.html#l00008">8</a> du fichier <a class="el" href="_image_8h_source.html">Image.h</a>.</p>

</div>
</div>
<hr/><h2>Documentation des définition de type</h2>
<a class="anchor" id="abbe0c74b95d97226a5e1f28a814631b8"></a><!-- doxytag: member="Image.h::Image" ref="abbe0c74b95d97226a5e1f28a814631b8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs_image.html">Image</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Redéfinit la structure <a class="el" href="structs_image.html" title="Structure utilisée pour la gestion d&#39;une image.">sImage</a>. </p>

<p>Définition à la ligne <a class="el" href="_image_8h_source.html#l00048">48</a> du fichier <a class="el" href="_image_8h_source.html">Image.h</a>.</p>

</div>
</div>
<hr/><h2>Documentation des fonctions</h2>
<a class="anchor" id="a1cb04a46ed83be9a0c49b3b884c91d62"></a><!-- doxytag: member="Image.h::getPix" ref="a1cb04a46ed83be9a0c49b3b884c91d62" args="(const Image *im, const int x, const int y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_pixel.html">Pixel</a> getPix </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_image.html">Image</a> *&nbsp;</td>
          <td class="paramname"> <em>im</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Récupère le pixel de coordonnée (x,y) en vérifiant leur validité. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in,out]</tt>&nbsp;</td><td valign="top"><em>im</em>&nbsp;</td><td>Pointeur vers l'image. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>x</em>&nbsp;</td><td>coordonnée x du pixel à Récupèrer. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>y</em>&nbsp;</td><td>coordonnée y du pixel à Récupèrer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>la valeur du pixel demandé. </dd></dl>

<p>Définition à la ligne <a class="el" href="_image_8c_source.html#l00065">65</a> du fichier <a class="el" href="_image_8c_source.html">Image.c</a>.</p>

<p>Références <a class="el" href="_image_8h_source.html#l00039">sImage::dimx</a>, et <a class="el" href="_image_8h_source.html#l00038">sImage::pix</a>.</p>

<p>Référencé par <a class="el" href="_image_8c_source.html#l00184">imPrintf()</a>, et <a class="el" href="_image_8c_source.html#l00132">imSauver()</a>.</p>

</div>
</div>
<a class="anchor" id="acd1b5e5f7a7fa80087a1e53bfa4da49d"></a><!-- doxytag: member="Image.h::imCreer" ref="acd1b5e5f7a7fa80087a1e53bfa4da49d" args="(const int dimx, const int dimy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs_image.html">Image</a>* imCreer </td>
          <td>(</td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>dimx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>dimy</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Alloue dans le tas une structure Image puis l'initialise avec imInit. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>dimx</em>&nbsp;</td><td>Largeur de l'image. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>dimy</em>&nbsp;</td><td>Hauteur de l'image. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Un pointeur sur Image. </dd></dl>

<p>Définition à la ligne <a class="el" href="_image_8c_source.html#l00041">41</a> du fichier <a class="el" href="_image_8c_source.html">Image.c</a>.</p>

<p>Références <a class="el" href="_image_8c_source.html#l00018">imInit()</a>.</p>

<p>Référencé par <a class="el" href="_image_8c_source.html#l00208">ImRegressionTest()</a>, et <a class="el" href="_pixel_8c_source.html#l00072">ImRegressionTest2()</a>.</p>

</div>
</div>
<a class="anchor" id="aae7e2d32a1d4c4516a818d8a473c0a86"></a><!-- doxytag: member="Image.h::imDessineRectangle" ref="aae7e2d32a1d4c4516a818d8a473c0a86" args="(Image *im, const int Xmin, const int Ymin, const int Xmax, const int Ymax, const Pixel *couleur)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void imDessineRectangle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_image.html">Image</a> *&nbsp;</td>
          <td class="paramname"> <em>im</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>Xmin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>Ymin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>Xmax</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>Ymax</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="struct_pixel.html">Pixel</a> *&nbsp;</td>
          <td class="paramname"> <em>couleur</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Dessine un rectangle de couleur dans l'image en utilisant setPix. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in,out]</tt>&nbsp;</td><td valign="top"><em>im</em>&nbsp;</td><td>Pointeur vers l'image. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>Xmin</em>&nbsp;</td><td>Largeur minimum du rectangle. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>Ymin</em>&nbsp;</td><td>Hauteur minimum du rectangle. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>Xmax</em>&nbsp;</td><td>Largeur maximum du rectangle. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>Ymax</em>&nbsp;</td><td>Hauteur maximum du rectangle. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>couleur</em>&nbsp;</td><td>pointeur sur Couleur du rectangle. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>0 si tout est OK. </dd></dl>

<p>Définition à la ligne <a class="el" href="_image_8c_source.html#l00093">93</a> du fichier <a class="el" href="_image_8c_source.html">Image.c</a>.</p>

<p>Références <a class="el" href="_image_8c_source.html#l00075">setPix()</a>.</p>

<p>Référencé par <a class="el" href="_image_8c_source.html#l00113">imEffacer()</a>, et <a class="el" href="main_exemple_8c_source.html#l00005">main()</a>.</p>

</div>
</div>
<a class="anchor" id="ae9d0336b23f7c615e57c4862714df90f"></a><!-- doxytag: member="Image.h::imDetruire" ref="ae9d0336b23f7c615e57c4862714df90f" args="(Image *im)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void imDetruire </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_image.html">Image</a> *&nbsp;</td>
          <td class="paramname"> <em>im</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Libere le tableau de pixel en appelant imLibere puis détruit la structure image. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in,out]</tt>&nbsp;</td><td valign="top"><em>im</em>&nbsp;</td><td>Pointeur vers l'image à detruir. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>0 si tout est OK </dd></dl>

<p>Définition à la ligne <a class="el" href="_image_8c_source.html#l00050">50</a> du fichier <a class="el" href="_image_8c_source.html">Image.c</a>.</p>

<p>Références <a class="el" href="_image_8c_source.html#l00029">imLibere()</a>.</p>

<p>Référencé par <a class="el" href="_image_8c_source.html#l00208">ImRegressionTest()</a>, et <a class="el" href="_pixel_8c_source.html#l00072">ImRegressionTest2()</a>.</p>

</div>
</div>
<a class="anchor" id="aa04f50f4353fee39ec6cfd7201ab0367"></a><!-- doxytag: member="Image.h::imEffacer" ref="aa04f50f4353fee39ec6cfd7201ab0367" args="(Image *im, const Pixel *couleur)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void imEffacer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_image.html">Image</a> *&nbsp;</td>
          <td class="paramname"> <em>im</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="struct_pixel.html">Pixel</a> *&nbsp;</td>
          <td class="paramname"> <em>couleur</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Efface l'image en appelant imDessineRectangle avec le bon rectangle. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in,out]</tt>&nbsp;</td><td valign="top"><em>im</em>&nbsp;</td><td>Pointeur vers l'image. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>couleur</em>&nbsp;</td><td>pointeur sur Couleur de suppression. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>0 si tout est OK. </dd></dl>

<p>Définition à la ligne <a class="el" href="_image_8c_source.html#l00113">113</a> du fichier <a class="el" href="_image_8c_source.html">Image.c</a>.</p>

<p>Références <a class="el" href="_image_8h_source.html#l00039">sImage::dimx</a>, <a class="el" href="_image_8h_source.html#l00040">sImage::dimy</a>, et <a class="el" href="_image_8c_source.html#l00093">imDessineRectangle()</a>.</p>

<p>Référencé par <a class="el" href="_image_8c_source.html#l00208">ImRegressionTest()</a>, et <a class="el" href="main_exemple_8c_source.html#l00005">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a6edbdf3bfe3beb4e44246a6c7985055c"></a><!-- doxytag: member="Image.h::imInit" ref="a6edbdf3bfe3beb4e44246a6c7985055c" args="(Image *im, const int dimx, const int dimy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void imInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_image.html">Image</a> *&nbsp;</td>
          <td class="paramname"> <em>im</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>dimx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>dimy</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initialise une image. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in,out]</tt>&nbsp;</td><td valign="top"><em>im</em>&nbsp;</td><td>Pointeur vers l'image à initialiser. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>dimx</em>&nbsp;</td><td>Largeur de l'image. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>dimy</em>&nbsp;</td><td>Hauteur de l'image. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>0 si tout est OK </dd></dl>

<p>Définition à la ligne <a class="el" href="_image_8c_source.html#l00018">18</a> du fichier <a class="el" href="_image_8c_source.html">Image.c</a>.</p>

<p>Références <a class="el" href="_image_8h_source.html#l00039">sImage::dimx</a>, <a class="el" href="_image_8h_source.html#l00040">sImage::dimy</a>, et <a class="el" href="_image_8h_source.html#l00038">sImage::pix</a>.</p>

<p>Référencé par <a class="el" href="_image_8c_source.html#l00041">imCreer()</a>, <a class="el" href="_image_8c_source.html#l00158">imOuvrir()</a>, <a class="el" href="_image_8c_source.html#l00208">ImRegressionTest()</a>, et <a class="el" href="main_exemple_8c_source.html#l00005">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a5931290abc22d365ae351381c594613f"></a><!-- doxytag: member="Image.h::imLibere" ref="a5931290abc22d365ae351381c594613f" args="(Image *im)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void imLibere </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_image.html">Image</a> *&nbsp;</td>
          <td class="paramname"> <em>im</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Libère une image de la mémoire. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in,out]</tt>&nbsp;</td><td valign="top"><em>im</em>&nbsp;</td><td>Pointeur vers l'image à libérer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>0 si tout est OK </dd></dl>

<p>Définition à la ligne <a class="el" href="_image_8c_source.html#l00029">29</a> du fichier <a class="el" href="_image_8c_source.html">Image.c</a>.</p>

<p>Références <a class="el" href="_image_8h_source.html#l00039">sImage::dimx</a>, <a class="el" href="_image_8h_source.html#l00040">sImage::dimy</a>, et <a class="el" href="_image_8h_source.html#l00038">sImage::pix</a>.</p>

<p>Référencé par <a class="el" href="_image_8c_source.html#l00050">imDetruire()</a>, <a class="el" href="_image_8c_source.html#l00208">ImRegressionTest()</a>, et <a class="el" href="main_exemple_8c_source.html#l00005">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a0a1f0b9be4b910e1cfc2648cfa9e38fd"></a><!-- doxytag: member="Image.h::imOuvrir" ref="a0a1f0b9be4b910e1cfc2648cfa9e38fd" args="(Image *pIm, const char filename[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void imOuvrir </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_image.html">Image</a> *&nbsp;</td>
          <td class="paramname"> <em>pIm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&nbsp;</td>
          <td class="paramname"> <em>filename</em>[]</td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ouvre une image au format .ppm. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in,out]</tt>&nbsp;</td><td valign="top"><em>pIm</em>&nbsp;</td><td>Pointeur vers l'image. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>filename</em>&nbsp;</td><td>fichier à ouvrir au format .ppm. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>0 si tout est OK. </dd></dl>

<p>Définition à la ligne <a class="el" href="_image_8c_source.html#l00158">158</a> du fichier <a class="el" href="_image_8c_source.html">Image.c</a>.</p>

<p>Références <a class="el" href="_image_8h_source.html#l00039">sImage::dimx</a>, <a class="el" href="_image_8h_source.html#l00040">sImage::dimy</a>, <a class="el" href="_image_8c_source.html#l00018">imInit()</a>, et <a class="el" href="_image_8c_source.html#l00075">setPix()</a>.</p>

<p>Référencé par <a class="el" href="main_exemple_8c_source.html#l00005">main()</a>.</p>

</div>
</div>
<a class="anchor" id="afadf8ab43119d304c72e201d0d95164d"></a><!-- doxytag: member="Image.h::imPrintf" ref="afadf8ab43119d304c72e201d0d95164d" args="(const Image *pIm)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void imPrintf </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_image.html">Image</a> *&nbsp;</td>
          <td class="paramname"> <em>pIm</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>sauvegarde une image au format .ppm. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in,out]</tt>&nbsp;</td><td valign="top"><em>pIm</em>&nbsp;</td><td>Pointeur vers l'image à imprimer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>0 si tout est OK. </dd></dl>

<p>Définition à la ligne <a class="el" href="_image_8c_source.html#l00184">184</a> du fichier <a class="el" href="_image_8c_source.html">Image.c</a>.</p>

<p>Références <a class="el" href="_image_8h_source.html#l00039">sImage::dimx</a>, <a class="el" href="_image_8h_source.html#l00040">sImage::dimy</a>, et <a class="el" href="_image_8c_source.html#l00065">getPix()</a>.</p>

</div>
</div>
<a class="anchor" id="a4fdd00deba298ac07e0636bace7a0e61"></a><!-- doxytag: member="Image.h::ImRegressionTest" ref="a4fdd00deba298ac07e0636bace7a0e61" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ImRegressionTest </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Teste toutes les fonctions du module image.h. </p>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>0 si tout est OK </dd></dl>

<p>Définition à la ligne <a class="el" href="_image_8c_source.html#l00208">208</a> du fichier <a class="el" href="_image_8c_source.html">Image.c</a>.</p>

<p>Références <a class="el" href="_image_8h_source.html#l00039">sImage::dimx</a>, <a class="el" href="_image_8h_source.html#l00040">sImage::dimy</a>, <a class="el" href="_image_8c_source.html#l00041">imCreer()</a>, <a class="el" href="_image_8c_source.html#l00050">imDetruire()</a>, <a class="el" href="_image_8c_source.html#l00113">imEffacer()</a>, <a class="el" href="_image_8c_source.html#l00018">imInit()</a>, <a class="el" href="_image_8c_source.html#l00029">imLibere()</a>, et <a class="el" href="_image_8h_source.html#l00038">sImage::pix</a>.</p>

<p>Référencé par <a class="el" href="main_test_8c_source.html#l00005">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a20b9ad35b6db7bd09d7452574d04dd50"></a><!-- doxytag: member="Image.h::imSauver" ref="a20b9ad35b6db7bd09d7452574d04dd50" args="(const Image *pIm, const char filename[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void imSauver </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_image.html">Image</a> *&nbsp;</td>
          <td class="paramname"> <em>pIm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&nbsp;</td>
          <td class="paramname"> <em>filename</em>[]</td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>sauvegarde une image au format .ppm. </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in,out]</tt>&nbsp;</td><td valign="top"><em>pIm</em>&nbsp;</td><td>Pointeur vers l'image. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>filename</em>&nbsp;</td><td>fichier à sauver. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>0 si tout est OK. </dd></dl>

<p>Définition à la ligne <a class="el" href="_image_8c_source.html#l00132">132</a> du fichier <a class="el" href="_image_8c_source.html">Image.c</a>.</p>

<p>Références <a class="el" href="_image_8h_source.html#l00039">sImage::dimx</a>, <a class="el" href="_image_8h_source.html#l00040">sImage::dimy</a>, et <a class="el" href="_image_8c_source.html#l00065">getPix()</a>.</p>

<p>Référencé par <a class="el" href="main_exemple_8c_source.html#l00005">main()</a>.</p>

</div>
</div>
<a class="anchor" id="ad239628e88372f488e18848112517521"></a><!-- doxytag: member="Image.h::setPix" ref="ad239628e88372f488e18848112517521" args="(Image *im, const int x, const int y, const Pixel *couleur)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setPix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_image.html">Image</a> *&nbsp;</td>
          <td class="paramname"> <em>im</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="struct_pixel.html">Pixel</a> *&nbsp;</td>
          <td class="paramname"> <em>couleur</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Modifie le pixel de coordonnée (x,y). </p>
<dl><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in,out]</tt>&nbsp;</td><td valign="top"><em>im</em>&nbsp;</td><td>Pointeur vers l'image. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>x</em>&nbsp;</td><td>coordonnée x du pixel à modifier. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>y</em>&nbsp;</td><td>coordonnée y du pixel à modifier. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>couleur</em>&nbsp;</td><td>pointeur sur Nouvel couleur du pixel selectioné. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>0 si tout est OK. </dd></dl>

<p>Définition à la ligne <a class="el" href="_image_8c_source.html#l00075">75</a> du fichier <a class="el" href="_image_8c_source.html">Image.c</a>.</p>

<p>Références <a class="el" href="_image_8h_source.html#l00039">sImage::dimx</a>, et <a class="el" href="_image_8h_source.html#l00038">sImage::pix</a>.</p>

<p>Référencé par <a class="el" href="_image_8c_source.html#l00093">imDessineRectangle()</a>, <a class="el" href="_image_8c_source.html#l00158">imOuvrir()</a>, et <a class="el" href="main_exemple_8c_source.html#l00005">main()</a>.</p>

</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Généré le Fri Oct 21 20:06:53 2011 pour MODULE_IMAGE par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>
